{include file=header.html}
<body>
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<style type="text/css">
.page{float:right;}
</style>
<div class="sub-body">
<form method="get" action="{url app=news}" id="search_form">
<input type="hidden" name="app" value="news" />
<table width="100%" cellspacing="0" cellpadding="0">
		<!-- {if $user_role} -->
       <tr>
        <td align="left">{$lang.category}：
		<select name="cate_id" onChange="$('#search_form').submit();">
			<option value="0">全部</option>
			<!--{foreach from=$lang.news_cate item=cate key=cate_key}-->
			<option value="{$cate_key}" {if $smarty.get.cate_id == $cate_key}selected{/if}>{$cate}</option>
			<!--{/foreach}-->
		</select>
		</td>
      </tr>
      <!-- {/if} -->
    </table>
	</form>
<div class="tab_info" style="width:700px;">
<div class="tab-title-1">
<span>{$lang.history_news}</span>
</div>
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
      <tr>
        <th width="15%">{$lang.update_date}</th>
        <th width="55%">{$lang.title}</th>
        {if $user.role eq USER_CIVILIAN}
        <th width="20%">{$lang.category}</th>
        {/if}
		<th width="10%">{$lang.handle}</th>
      </tr>
	  <!--{foreach from=$news_list item=news}-->
       <tr>
        <td>{$news.update_date|date}</td>
        <td align="left"><a href="{url app=news&act=show&id=$news.news_id}">{$news.title|escape}</a></td>
         {if $user.role eq USER_CIVILIAN}
        <td align="left"><!-- {foreach from=$news.cate_arr_id item=cate name=ct} -->{$lang.news_cate.$cate}<!--{if !$smarty.foreach.ct.last}-->&nbsp;|&nbsp;<!--{/if}--><!-- {/foreach} --></td>
		{/if}
		<td>{if $news.from_id eq $user_id}<a href="{url app=news&act=edit&news_id=$news.news_id}">{$lang.edit}</a>
        <a href="javascript:if(confirm('确认删除此信息吗?')==true){location.href='{url app=news&act=del&news_id=$news.news_id}';};">{$lang.delete}</a>{else}<a href="{url app=news&act=show&id=$news.news_id}">{$lang.show}</a>
        {/if}</td>

      </tr>
	  <!--{/foreach}-->
    </table>
    <div class="page"> {include file=page.html}</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>